home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4939 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: ifi.uio.no!usenet
  2. From: ludvigp@ifi.uio.no (Ludvig Pedersen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Qblit intereference again
  5. Date: 6 Mar 1996 18:52:28 GMT
  6. Organization: Dept. of Informatics, University of Oslo, Norway
  7. Message-ID: <1073.6639T512T2492@ifi.uio.no>
  8. References: <4gb6om$104@sunsystem5.informatik.tu-muenchen.de>
  9.       <4gg00a$gqm@oreig.uji.es> <4gj1vq$f9c@sunsystem5.informatik.tu-muenchen.de>
  10.      <871.6628T745T276@ifi.uio.no> <4h4djq$le8@sunsystem5.informatik.tu-muenchen.de>
  11.     <598.6635T987T401@ifi.uio.no> <4hhfve$4jf@sunsystem5.informatik.tu-muenchen.de>
  12. NNTP-Posting-Host: gymir.ifi.uio.no
  13. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  14.  
  15. >When I read about "do not busywait" I knew it was the bug before testing
  16. >out ;) Indeed the picviewer it interfered with set down his pri when doing
  17. >windowupddate (to not slow down normal tasks).
  18. >mhm I hope OwnBlitter() will not do busywait ? Else lockup, too.
  19.  
  20. OwnBlitter will put the task in wait-state.
  21.  
  22. But you have to use WaitBlit() before blitting and this call do wait for the
  23. blitter with the CPU.
  24.  
  25. >|> with the CPU.
  26. >|> Like in C:
  27. >|>  while(!BlitterIsDone);
  28. >|> or in ASM:
  29. >|> .Wait:
  30. >|>      tst  BlitterIsDone
  31. >|>      beq  .Wait
  32. >|> That is NO-NO. :-)
  33. >yes! I agree! :)
  34. >My solution is:
  35.  
  36. >wait:
  37. >    tst bltbsy
  38. >    beq ok
  39. >    WaitTOF();
  40. >    bra wait
  41. >ok:
  42. >normally there's no wait at all because you choose number of
  43. >blitterpasses so blitter won't brake.
  44. >The check is just for safety, and the lock showed that checking IS
  45. >nessesary (sometimes, very seldom, if interference from other tasks).
  46.  
  47. This loop will work, but I recommend to use Wait() instead.
  48.  
  49.  
  50. <sb>Ludde - Amiga Demo Coder
  51. <sb>Virtual Reality & Official Be developer
  52. <sb>ludvigp@ifi.uio.no
  53.  
  54.